home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Rinaldi / HC 1.2 & 2.0 / FullResList 2.0.cpt / FullResList 2.0 (US) / card_3055.txt < prev    next >
Text File  |  1992-05-04  |  6KB  |  207 lines

  1. -- card: 3055 from stack: in.0 (US)
  2. -- bmap block id: 3273
  3. -- flags: 0000
  4. -- background id: 2661
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=69 top=68 right=252 bottom=434
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20.  
  21.  
  22. -- part 5 (button)
  23. -- low flags: 00
  24. -- high flags: A003
  25. -- rect: left=174 top=281 right=311 bottom=343
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: FullResList
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   ask "Resource type(s) :" with "XFCN"
  37.   if it ‚↠empty
  38.   then put "T=" & it into Type
  39. else put "T=ALL" into Type
  40.  
  41. ask "Output mask :" with "TNI"
  42. if it ‚↠empty
  43. then put "O=" & it into Output
  44. else put "O=TNI" into Output
  45.  
  46. if last word of the version ‚â• 2.0
  47. then answer file "File to search in :"
  48. else ask "PathName of file to search in :"
  49.  
  50. if it is empty
  51. then get FullResList(Type,Output)
  52. else get FullResList(Type,Output,"W=" & it)
  53.  
  54. if first word of it is "Error"
  55. then
  56. beep
  57. answer it
  58. else
  59.   put it into cd fld 3
  60.   ShowHide true
  61. end if
  62. end mouseUp
  63.  
  64.  
  65. -- part 18 (field)
  66. -- low flags: 81
  67. -- high flags: 0004
  68. -- rect: left=118 top=64 right=274 bottom=381
  69. -- title width / last selected line: 0
  70. -- icon id / first selected line: 0 / 0
  71. -- text alignment: 0
  72. -- font id: 3
  73. -- text size: 12
  74. -- style flags: 0
  75. -- line height: 16
  76. -- part name: 
  77. ----- HyperTalk script -----
  78. on mouseUp
  79.   ShowHide false
  80. end mouseUp
  81.  
  82.  
  83. -- part 19 (field)
  84. -- low flags: 81
  85. -- high flags: 0007
  86. -- rect: left=151 top=87 right=248 bottom=353
  87. -- title width / last selected line: 0
  88. -- icon id / first selected line: 0 / 0
  89. -- text alignment: 0
  90. -- font id: 3
  91. -- text size: 9
  92. -- style flags: 0
  93. -- line height: 12
  94. -- part name: 
  95. ----- HyperTalk script -----
  96. on mouseUp
  97.   ShowHide false
  98. end mouseUp
  99.  
  100.  
  101. -- part contents for card part 1
  102. ----- text -----
  103.  
  104.  
  105.                                               FullResList 2.0
  106.  
  107.                                           by Fr√©d√©ric RINALDI
  108.  
  109.  
  110.  
  111. IMPORTANT :
  112. -----------
  113.    In order to keep parameter coherency in version 2.0, previous <fileName> param has changed to "W=<fileName>". So you should add the "W=" prefix in your calls.
  114.  
  115.  
  116. DESCRIPTION
  117. ------------
  118.   FullResList allows to get a list of resources informations for any file, or even to test if a resource is present.
  119.  
  120.  
  121. SYNTAX
  122. --------
  123.       FullResList([<T=ALL|Type1[‚Ķ,TypeN]>][,<N=res name>][,<I=res id>]
  124.                         [,<W=ALL|fileName>][,<O=A|T|N|S|I|W[‚ĶA|T|N|S|I|W]>])
  125.  
  126. PARAMETERS
  127. ------------
  128.    All parameters are optional. 
  129.  
  130.    <T=ALL|Type1[‚Ķ,TypeN]> allows to define one or more types of resources to list. Default is "T=ALL".
  131.  
  132.    <N=res name> defines the resource name to search.
  133.  
  134.    <I=res id> defines the resource id to search.
  135.  
  136.    <W=ALL|fileName> defines the resource file to search in. <fileName> can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack. Aliases are also supported. Default is current stack. If "ALL" is used,  all accessible resources will be returned (Current stack + stacks in use + Home + HyperCard + System).
  137.  
  138.    <O=A|T|N|S|I|W[‚ĶA|T|N|S|I|W]> allows to define the output format of returned list resource entries. Order and components can be freely choosen using A (attributes), T (type), N (name), S (size), I (ID) and W (where). Default is "O=TNI".
  139.    Attributes are returned as string that can contain any combination of :
  140.       C (changed), R (pReload), P (Protected), L (Locked), U (pUrgeable)
  141.       and S (Sustem heap).
  142.  
  143.    Using "!", "?" and "=" as first parameter will return an online help (resp. copyright,  syntax and output).
  144.  
  145.  
  146. USING
  147. -----
  148.    The XFCN returns a return delimited list of entries formatted according to given output mask. Informations in each entry are comma delimited.
  149.  
  150.    Logical AND is computed with params "T=", "N=" and "I=".
  151.  
  152.  
  153. ERRORS
  154. -------
  155. If an error occurs, FullResList can return :
  156.  
  157.      "Error : Out of memory"
  158.      "Error : Empty parameter #x"
  159.      "Error : Missing information following "X=""
  160.      "Error : Out of memory"
  161.      "Error : Bad resource ID"
  162.      "Error : "X" not allowed in output mask"
  163.      "Error : This file has no resource fork"
  164.      "Error : Param #x must begin with T,N,I,O or W"
  165.      "Error : Bad parameter format"
  166.      "Error : Out of memory"
  167.      "Error : No resources found"
  168.      "Error : Bad resource type"
  169.      "Error : Not a file"
  170.      "Error : Alias file not supported"
  171.      "Error : Volume not found"
  172.      "Error : Bad Name"
  173.      "Error : File not found"
  174.      "Error : Folder not found"
  175.      "Error : I/O Error"
  176.  
  177.  
  178. HISTORY
  179. --------
  180. 2.0 :                                                                                          04/27/92
  181. ‚Ä¢ Added "N=" and "I=" params
  182. ‚Ä¢ Changed <fileName> param to "W=<fileName>"
  183. ‚Ä¢ Added "W" for output mask, allowing to know in which file each resource was found (useful with "T=ALL").
  184.  
  185. 1.3 :                                                                                          12/25/91
  186. ‚Ä¢ Fixed alias file bug under System 7.0.1
  187.  
  188. 1.2                                                                                            11/12/91
  189. ‚Ä¢ Added ALL in file param
  190.  
  191. 1.1                                                                                            10/25/91
  192. ‚Ä¢ Fixed minor bug due to openRFPerm
  193.  
  194. 1.0                                                                                            10/24/91
  195. ‚Ä¢ First release
  196. --------------------------------------------------------------------
  197. This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.
  198. Any commercial use must be licensed and aknowledged by the author.
  199.  
  200.                                 ¬© F. Rinaldi - 1989,1990,1991
  201.  
  202. AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111
  203.  
  204.  
  205. -- part contents for card part 19
  206. ----- text -----
  207. FullResList